<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title>后台 - 基本配置配置</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="favicon.ico">
		<link href="__PUBLIC__/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/animate.min.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	</head>

	<body class="gray-bg">
		<div class="wrapper wrapper-content animated fadeInRight">
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>基本配置</h5>
							<div class="ibox-tools">
								<a class="collapse-link">
									<i class="fa fa-chevron-up"></i>
								</a>
							</div>
						</div>
						<div class="ibox-content">
							<form id="signform" action="{:U('Admin/Site/pk10')}" method="post" class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">客服欢迎语</label>
									<div class="col-sm-6">
										<input type="text" name="welcome" value="{:C('welcome')}" placeholder="欢迎莅临，祝您竞猜愉快！本平台重金打造！玩法多样，超高赔率，等你来战！" class="form-control">
										<span>（修改后需要重启服务生效）</span>
									</div>

								</div>
								<div class="hr-line-dashed"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label">虚拟在线人数</label>
									<div class="col-sm-6">
										<input type="text" name="online" value="{:C('online')}" placeholder="输入虚拟人数" class="form-control">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">人数是否自动变动</label>
									<div class="col-sm-6">
										<select class="form-control" name="online_change">
											<option <if condition="C('online_change') eq 1">selected</if>  value="1" >是</option>
											<option <if condition="C('online_change') eq 0">selected</if>  value="0">否</option>
										</select>
									</div>
								</div>
								<div class="hr-line-dashed"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label">是否开启机器人</label>
									<div class="col-sm-6">
										<input type="radio" value="1" <if condition="C('robot') eq 1">checked</if> class="i-checks" name="robot">开启&nbsp;&nbsp;
										<input type="radio" value="0" <if condition="C('robot') eq 0">checked</if> class="i-checks" name="robot">关闭
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">机器人下注频率</label>
									<div class="col-sm-6">
										<select class="form-control" name="robot_rate">
											<option <if condition="C('robot_rate') eq 1">selected</if>  value="1" >1</option>
											<option <if condition="C('robot_rate') eq 2">selected</if>  value="2" >2</option>
											<option <if condition="C('robot_rate') eq 3">selected</if>  value="3" >3</option>
											<option <if condition="C('robot_rate') eq 4">selected</if>  value="4" >4</option>
											<option <if condition="C('robot_rate') eq 5">selected</if>  value="5" >5</option>
										</select>
										（数字越高，频率越快）
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">机器人是否显示上下分</label>
									<div class="col-sm-6">
										<select class="form-control" name="is_robot_addfen">
											<option <if condition="C('is_robot_addfen') eq 1">selected</if>  value="1" >是</option>
											<option <if condition="C('is_robot_addfen') eq 0">selected</if>  value="0">否</option>
										</select>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">是否开放聊天</label>
									<div class="col-sm-6">
										<select class="form-control" name="is_say">
											<option <if condition="C('is_say') eq 1">selected</if>  value="1" >是</option>
											<option <if condition="C('is_say') eq 0">selected</if>  value="0">否</option>
										</select>
										<span>（修改后需要重启服务生效）</span>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">是否重复上下分语音</label>
									<div class="col-sm-6">
										<select class="form-control" name="is_repeat_voice">
											<option <if condition="C('is_repeat_voice') eq 1">selected</if>  value="1" >是</option>
											<option <if condition="C('is_repeat_voice') eq 0">selected</if>  value="0">否</option>
										</select>
										<span></span>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">管理员是否能删除订单</label>
									<div class="col-sm-6">
										<select class="form-control" name="is_del_order">
											<option <if condition="C('is_del_order') eq 1">selected</if>  value="1" >是</option>
											<option <if condition="C('is_del_order') eq 0">selected</if>  value="0">否</option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">玩家是否能取消订单</label>
									<div class="col-sm-6">
										<select class="form-control" name="is_cancel_order">
											<option <if condition="C('is_cancel_order') eq 1">selected</if>  value="1" >是</option>
											<option <if condition="C('is_cancel_order') eq 0">selected</if>  value="0">否</option>
										</select>
									</div>
								</div>


								<div class="hr-line-dashed"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_bj28_1')}封盘时间</label>
									<div class="col-sm-6">
										<input type="text" name="bj28_1_stop_time" value="{:C('bj28_1_stop_time')}" placeholder="60" class="form-control">秒
										<span>（建议60秒，修改后需要重启服务生效）</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_bj28_2')}封盘时间</label>
									<div class="col-sm-6">
										<input type="text" name="bj28_2_stop_time" value="{:C('bj28_2_stop_time')}" placeholder="60" class="form-control">秒
										<span>（建议60秒，修改后需要重启服务生效）</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_bj28_3')}封盘时间</label>
									<div class="col-sm-6">
										<input type="text" name="bj28_3_stop_time" value="{:C('bj28_3_stop_time')}" placeholder="60" class="form-control">秒
										<span>（建议60秒，修改后需要重启服务生效）</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_jnd28_1')}封盘时间</label>
									<div class="col-sm-6">
										<input type="text" name="jnd28_1_stop_time" value="{:C('jnd28_1_stop_time')}" placeholder="60" class="form-control">秒
										<span>（建议40秒以上，修改后需要重启服务生效）</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_jnd28_2')}封盘时间</label>
									<div class="col-sm-6">
										<input type="text" name="jnd28_2_stop_time" value="{:C('jnd28_2_stop_time')}" placeholder="60" class="form-control">秒
										<span>（建议40秒以上，修改后需要重启服务生效）</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_jnd28_3')}封盘时间</label>
									<div class="col-sm-6">
										<input type="text" name="jnd28_3_stop_time" value="{:C('jnd28_3_stop_time')}" placeholder="60" class="form-control">秒
										<span>（建议40秒以上，修改后需要重启服务生效）</span>
									</div>
								</div>
								

								<div class="hr-line-dashed"></div>
								

								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_bj28')}采集设置</label>
									<div class="col-sm-6">
										<select class="form-control bj28_kj_select" name="bj28_kj_select">
											<option <if condition="C('bj28_kj_select') eq 1">selected</if>  value="1" >使用本系统自带采集开奖</option>
											<option <if condition="C('bj28_kj_select') eq 2">selected</if>  value="2">使用彩票控接口开奖</option>
										</select>
									</div>
								</div>
								<div class="form-group bj28_api"  <if condition="C('bj28_kj_select') eq 1">style='display:none'</if> >
									<label class="col-sm-2 control-label">彩票控北京快乐8接口</label>
									<div class="col-sm-6">
										<input type="text" name="bj28_api" value="{:C('bj28_api')}" placeholder="http://api.kaijiangtong.com/lottery/?name=bjpks&format=json&uid=&token=79f6d380de334fed70722118b413e" class="form-control">
									</div>
								</div>


								<div class="form-group">
									<label class="col-sm-2 control-label">{:C('lang_jnd28')}采集设置</label>
									<div class="col-sm-6">
										<select class="form-control jnd28_kj_select" name="jnd28_kj_select">
											<option <if condition="C('jnd28_kj_select') eq 1">selected</if>  value="1" >使用本系统自带采集开奖</option>
											<option <if condition="C('jnd28_kj_select') eq 2">selected</if>  value="2">使用彩票控接口开奖</option>
										</select>
									</div>
								</div>
								<div class="form-group jnd28_api"  <if condition="C('jnd28_kj_select') eq 1">style='display:none'</if> >
									<label class="col-sm-2 control-label">彩票控北京快乐8接口</label>
									<div class="col-sm-6">
										<input type="text" name="jnd28_api" value="{:C('jnd28_api')}" placeholder="http://api.kaijiangtong.com/lottery/?name=bjpks&format=json&uid=&token=79f6d380de334fed70722118b413e" class="form-control">
									</div>
								</div>

								<div class="hr-line-dashed"></div>
								<div class="form-group">
									<div class="col-sm-4 col-sm-offset-2">
										<button class="btn btn-primary" type="submit">保存信息</button>&nbsp;&nbsp;&nbsp;
										
									</div>
								</div>
								
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
		<script src="__PUBLIC__/Admin/js/content.min.js?v=1.0.0"></script>
		<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
		<script src="__PUBLIC__/Common/layer/layer.js"></script>
		<script src="__PUBLIC__/Admin/js/plugins/iCheck/icheck.min.js"></script>
		<script>
			$('.pk10_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.pk10_api').show();
				}else {
					$('.pk10_api').hide();
				}
			})

			$('.xyft_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.xyft_api').show();
				}else {
					$('.xyft_api').hide();
				}
			})

			$('.ssc_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.ssc_api').show();
				}else {
					$('.ssc_api').hide();
				}
			})

			$('.bj28_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.bj28_api').show();
				}else {
					$('.bj28_api').hide();
				}
			})

			$('.jnd28_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.jnd28_api').show();
				}else {
					$('.jnd28_api').hide();
				}
			})

			$('.k3_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3_api').show();
				}else {
					$('.k3_api').hide();
				}
			})

			$('.k3bj_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3bj_api').show();
				}else {
					$('.k3bj_api').hide();
				}
			})

			$('.k3gx_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3gx_api').show();
				}else {
					$('.k3gx_api').hide();
				}
			})

			$('.k3jl_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3jl_api').show();
				}else {
					$('.k3jl_api').hide();
				}
			})

			$('.k3fj_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3fj_api').show();
				}else {
					$('.k3fj_api').hide();
				}
			})

			$('.k3ah_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3ah_api').show();
				}else {
					$('.k3ah_api').hide();
				}
			})

			$(document).ready(function() {
				$(".i-checks").iCheck({
					checkboxClass: "icheckbox_square-green",
					radioClass: "iradio_square-green",
				})
			});
		</script>
		<script>
			$(function(){
				$('#signform').ajaxForm({
					success: complete, 
					dataType: 'json'
				});
				function complete(data){
					if(data.status==1){
						$('.btn-primary').attr('disabled','disabled');
						layer.msg(data.info, function(index){
			 				layer.close(index);
							window.location.href=data.url;
						});
					}else{
						layer.msg(data.info);
						return false;	
					}
				}
			});
		</script>
	</body>

</html>